<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class UserMessage extends Model
{
    protected $table = 'user_messages';

    public static function getPageList($where = [], $order='id', $sort = 'desc')
    {
        $messages = self::paginate(10)->toArray();
        return $messages;
    }
}